// 简历列表  渠道查询条件 过滤标识
export const CHANNEL_CONDITION_FLAG_ENUM = {
    EXCLUDE_RCK: 'special_exclude_rck', // 排查人才库
    RCK: 'special_rck' // 只查人才库
};

// 简历列表：状态
export const RESUME_STATUS = [
    { value: 1, text: '待定' },
    { value: 2, text: '候选' },
    { value: 3, text: '淘汰' },
    { value: 4, text: '面试' },
    { value: 5, text: '录用' },
    { value: 6, text: '入职' }
];
// 候选人列表：状态
export const CANDIDATE_STATUS = [
    { value: 1, text: '候选' },
    { value: 2, text: '淘汰' },
    { value: 3, text: '待接受' },
    { value: 4, text: '待面试' },
    { value: 5, text: '已取消' },
    { value: 6, text: '修改时间' },
    { value: 7, text: '逾期' },
    { value: 8, text: '拒绝' }
];

export const RECOMMEND_TYPE_VALUES = {
    COMMON: 5,
    OTHER: 2
};

// 针对候选人的操作类型
export const CANDIDATE_OPERATE_TYPE = [
    { value: 1, text: '淘汰', iconType: 'iconlistfunction_recommend' },
    { value: RECOMMEND_TYPE_VALUES.OTHER, text: '推荐到其他岗位', iconType: 'iconlistfunction_out' },
    { value: 3, text: '转发简历', iconType: 'iconlistfunction_transmit' },
    { value: RECOMMEND_TYPE_VALUES.COMMON, text: '推荐到岗位', iconType: 'iconlistfunction_out' }
];

// 能力级别
export const ABILITY_LEVEL = [
    { value: 1, text: '一般' },
    { value: 2, text: '良好' },
    { value: 3, text: '熟练' },
    { value: 4, text: '精通' }
];

// 性别
export const SEX = [
    {
        text: '男',
        value: '1'
    },
    {
        text: '女',
        value: '2'
    }
];
// 是否已读
export const READ_FLAG = [
    {
        text: '否',
        value: 0
    },
    {
        text: '是',
        value: 1
    }
];

// 在职状态
export const LAST_POST_STATUS = [
    {
        text: '在职',
        value: 1
    },
    {
        text: '离职',
        value: 2
    }
];

// 面试方式
export const INTERVIEW_WAY = [
    { value: 1, text: '现场' },
    { value: 2, text: '视频' },
    { value: 3, text: '电话' },
    { value: 4, text: '笔试' },
    { value: 99, text: '其他' }
];
// 联系面试方式
export const CONTACT_WAY = [
    { value: 1, text: '电话' },
    { value: 2, text: '微信' },
    { value: 3, text: 'QQ' },
    { value: 4, text: '邮件' },
    { value: 99, text: '其他' }
];
// 联系面试结果
export const CONTACT_RESULT = [
    { value: 1, text: '确认面试' },
    { value: 2, text: '推荐到其他岗位' },
    { value: 3, text: '淘汰' },
    { value: 99, text: '其他' }
];
// 面试状态
export const INTERVIEW_STATUS = [
    {
        value: 1,
        text: '待接受',
        color: ' rgba(0, 0, 0, 0.65)',
        background: '#FAFAFA'
    },
    { value: 2, text: '待面试', color: '#5590F6', background: '#F4F8FF' },
    { value: 3, text: '待总结', color: '#5590F6', background: '#F4F8FF' },
    { value: 4, text: '已通过', color: '#44C69D', background: '#ECFFF7' },
    { value: 5, text: '已淘汰', color: 'rgba(0, 0, 0, 0.25)', background: '#FAFAFA' },
    { value: 6, text: '需复试', color: '#FFA22D', background: '#FFF8EF' },
    { value: 7, text: '已取消', color: 'rgba(0, 0, 0, 0.25)', background: '#FAFAFA' },
    { value: 8, text: '修改时间', color: 'rgba(0, 0, 0, 0.65)', background: '#FAFAFA' },
    { value: 9, text: '逾期', color: 'rgba(0, 0, 0, 0.25)', background: '#FAFAFA' },
    { value: 10, text: '拒绝', color: 'rgba(0, 0, 0, 0.25)', background: '#FAFAFA' }
];

// 面试管理所有状态
export const RESUME_STATUS_LIST = [
    { value: 101, text: '待定', color: '' },
    { value: 102, text: '候选', color: '' },
    // { value: 103, text: '淘汰', color: 'rgba(0, 0, 0, 0.25)' },
    { value: 203, text: '待接受', color: '' },
    { value: 204, text: '待面试', color: '' },
    { value: 205, text: '已取消', color: '' },
    { value: 206, text: '修改时间', color: '' },
    { value: 207, text: '逾期', color: '' },
    { value: 208, text: '拒绝', color: '' },
    { value: 303, text: '待总结', color: '' },
    { value: 304, text: '通过', color: '' },
    { value: 306, text: '需复试', color: '' },
    { value: 401, text: '待处理', color: '' },
    { value: 402, text: '需协商', color: '' },
    { value: 403, text: '审批中', color: '' },
    { value: 404, text: '审批拒绝', color: '' },
    { value: 405, text: '审批撤回', color: '' },
    { value: 406, text: '待接收', color: '' },
    { value: 407, text: '待入职', color: '' },
    // { value: 409, text: '已入职', color: '' },
    { value: 499, text: '其他', color: '' }
];

// 简历阶段
export const RESUME_STEP = [
    { value: 1, text: '简历' },
    { value: 2, text: '候选' },
    { value: 3, text: '面试' },
    { value: 4, text: '录用' }
    // { value: 5, text: '入职' }
];

export const NOTICE_TYPE = {
    INVITE: 'invite',
    WEED_OUT: 'weedOut', // 面试淘汰
    TERMINATE: 'TERMINATE', // 录用淘汰
    THIRD_PARTY: 'thirdParty', // 背调第三方机构
    OFFER: 'offer_notification', // 录用通知
    BACKGROUND: 'background_check_notification'
};

// 录用-录用状态
export const HIRE_STATUS_ENUM = {
    PENDING: 1,
    COMMUNICATING: 2,
    APPROVAL: 3,
    DENIED: 4,
    WITHDRAWAL: 5,
    TO_BE_ACCEPTED: 6,
    TO_BE_HIRED: 7,
    OUT: 8,
    HIRED: 9
};

// 录用-录用状态
// 1=待处理 2=沟通中 3=审批中 4=审批拒绝 5=审批撤回 6=待接受  7=待入职 8=已淘汰 9=已入职
export const HIRE_STATUS = [
    { value: HIRE_STATUS_ENUM.PENDING, text: '待处理' },
    { value: HIRE_STATUS_ENUM.COMMUNICATING, text: '沟通中' },
    { value: HIRE_STATUS_ENUM.APPROVAL, text: '审批中' },
    { value: HIRE_STATUS_ENUM.DENIED, text: '审批拒绝' },
    { value: HIRE_STATUS_ENUM.WITHDRAWAL, text: '审批撤回' },
    { value: HIRE_STATUS_ENUM.TO_BE_ACCEPTED, text: '待接受' },
    { value: HIRE_STATUS_ENUM.TO_BE_HIRED, text: '待入职' },
    { value: HIRE_STATUS_ENUM.HIRED, text: '已入职' },
    { value: HIRE_STATUS_ENUM.OUT, text: '已淘汰' }
];

// 录用-终止类型
export const TERMINATE_TYPE = [
    { value: 1, text: '候选人拒聘（薪资/原公司挽留/平台稳定性）' },
    { value: 2, text: '候选人背调不通过（提供虚假信息）' },
    { value: 3, text: '公司管理意见' },
    { value: 99, text: '其他' }
];

export const COMMUNICATE_RESULT_ENUM = {
    AGREE: 1,
    NEGOTIATE: 2,
    PREOUT: 3,
    OUT: 4
};

// 录用-沟通结果
export const COMMUNICATE_RESULT = [
    { value: COMMUNICATE_RESULT_ENUM.AGREE, text: '达成共识' },
    { value: COMMUNICATE_RESULT_ENUM.NEGOTIATE, text: '需协商' },
    { value: COMMUNICATE_RESULT_ENUM.PREOUT, text: '建议淘汰' },
    { value: COMMUNICATE_RESULT_ENUM.OUT, text: '直接淘汰' }
];

// 劳动合同类型单位
export const LABOUR_PERIOD_TYPE = [
    { value: 1, text: '年' },
    { value: 2, text: '月' }
];

// 试用期类型单位
export const PROBATION_PERIOD_TYPE = [
    { value: 1, text: '月' },
    { value: 2, text: '天' }
];

/**
 * 用人部门建议状态
 */
export const DEPARTMENT_SUGGEST_TYPE_ENUM = {
    CHANGE: 1, // 建议修改年薪
    OUT: 2 // 直接淘汰
};

// 用人部门建议
export const DEPARTMENT_SUGGEST_TYPE = [
    { value: DEPARTMENT_SUGGEST_TYPE_ENUM.CHANGE, text: '修改建议年薪' },
    { value: DEPARTMENT_SUGGEST_TYPE_ENUM.OUT, text: '直接淘汰' }
];

// 人才库-黑名单，拉黑阶段类型
export const BLOCK_STAGE_TYPE = [
    { value: 1, text: '简历' },
    { value: 2, text: '候选' },
    { value: 3, text: '面试' },
    { value: 4, text: '录用' },
    { value: 0, text: '新简历' }
];

// 人才库-阶段
export const STAGE_TYPE = [
    {
        value: '0',
        text: '新简历'
    },
    {
        value: '1',
        text: '简历',
        children: [
            {
                value: '01',
                text: '待定'
            },
            {
                value: '02',
                text: '候选'
            },
            {
                value: '03',
                text: '淘汰'
            }
        ]
    },
    {
        value: '2',
        text: '候选',
        children: [
            {
                value: '01',
                text: '候选'
            },
            {
                value: '02',
                text: '淘汰'
            },
            {
                value: '03',
                text: '待接受'
            },
            {
                value: '04',
                text: '待面试'
            },
            {
                value: '05',
                text: '已取消'
            }
        ]
    },
    {
        value: '3',
        text: '面试',
        children: [
            {
                value: '01',
                text: '待接受'
            },
            {
                value: '02',
                text: '待面试'
            },
            {
                value: '03',
                text: '待总结'
            },
            {
                value: '04',
                text: '通过'
            },
            {
                value: '05',
                text: '淘汰'
            },
            {
                value: '06',
                text: '需复试'
            },
            {
                value: '07',
                text: '已取消'
            },
            {
                value: '08',
                text: '修改时间'
            },
            {
                value: '09',
                text: '逾期'
            },
            {
                value: '10',
                text: '拒绝'
            }
        ]
    },
    {
        value: '4',
        text: '录用',
        children: [
            {
                value: '01',
                text: '待处理'
            },
            {
                value: '02',
                text: '需协商'
            },
            {
                value: '03',
                text: '审批中'
            },
            {
                value: '04',
                text: '审批拒绝'
            },
            {
                value: '05',
                text: '审批撤回'
            },
            {
                value: '06',
                text: '待接受'
            },
            {
                value: '07',
                text: '已接受'
            },
            {
                value: '08',
                text: '已取消'
            },
            {
                value: '09',
                text: '已入职'
            }
        ]
    }
];

// 人才库-简历状态
export const RESUME_STAGE = [
    {
        value: 3,
        text: '淘汰'
    },
    {
        value: 2,
        text: '已取消'
    },
    {
        value: 1,
        text: '应聘中'
    },
    {
        value: 4,
        text: '已入职'
    }
];

// 简历标签 -----------------
export const RESUME_LABEL_ENUM = {
    NONE: 0,
    APPLYING: 1,
    CANCELED: 2,
    OBSOLETE: 3
};

export const RESUME_LABEL = [
    {
        value: RESUME_LABEL_ENUM.NONE,
        text: '无标签'
    },
    {
        value: RESUME_LABEL_ENUM.APPLYING,
        text: '应聘中',
        tagColor: 'blue'
    },
    {
        value: RESUME_LABEL_ENUM.CANCELED,
        text: '已取消',
        tagColor: 'rgba(0, 0, 0, 0.15)'
    },
    {
        value: RESUME_LABEL_ENUM.OBSOLETE,
        text: '已淘汰',
        tagColor: 'rgba(0, 0, 0, 0.15)'
    }
];

// 背调关系
export const BG_RELATE_TYPE_ENUM = {
    SUP: 1,
    PEERS: 2,
    SUB: 3
    // CUSTOM: 99
};

export const BG_RELATE_TYPE = [
    {
        value: BG_RELATE_TYPE_ENUM.SUP,
        text: '上级主管'
    },
    {
        value: BG_RELATE_TYPE_ENUM.PEERS,
        text: '平级同事',
        tagColor: 'blue'
    },
    {
        value: BG_RELATE_TYPE_ENUM.SUB,
        text: '下属同事'
    }
    // {
    //     value: BG_RELATE_TYPE_ENUM.CUSTOM,
    //     text: '自定义'
    // }
];

export const BG_CONTACT_WAY = [
    { value: 1, text: '手机' },
    { value: 2, text: '微信' },
    { value: 3, text: 'QQ' },
    { value: 4, text: '面谈' }
];
